.class public Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field a:Landroid/view/View$OnClickListener;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/ListView;

.field private f:Ljava/util/ArrayList;

.field private g:Landroid/view/LayoutInflater;

.field private h:Lcom/waiqin365/lightapp/kehu/fr;

.field private i:Ljava/util/List;

.field private j:Z

.field private k:Landroid/widget/LinearLayout;

.field private l:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/fq;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/fq;-><init>(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->a:Landroid/view/View$OnClickListener;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->i:Ljava/util/List;

    return-object v0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->f:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)Landroid/view/LayoutInflater;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->g:Landroid/view/LayoutInflater;

    return-object v0
.end method

.method private c()V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    invoke-static {}, Lcom/waiqin365/base/db/cmfilteritem/b;->a()Lcom/waiqin365/base/db/cmfilteritem/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/b;->b()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->i:Ljava/util/List;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->i:Ljava/util/List;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_2

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->f:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->d()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->e:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->f:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->g:Landroid/view/LayoutInflater;

    new-instance v0, Lcom/waiqin365/lightapp/kehu/fr;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/fr;-><init>(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->h:Lcom/waiqin365/lightapp/kehu/fr;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->e:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->h:Lcom/waiqin365/lightapp/kehu/fr;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->e:Landroid/widget/ListView;

    invoke-virtual {v0, v3}, Landroid/widget/ListView;->setVisibility(I)V

    :cond_1
    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->e:Landroid/widget/ListView;

    invoke-virtual {v0, v4}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1
.end method


# virtual methods
.method public a()V
    .locals 2

    const v0, 0x7f0c0247

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->k:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0317

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->l:Landroid/widget/TextView;

    const v0, 0x7f0c0316

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->e:Landroid/widget/ListView;

    const v0, 0x7f0c0232

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0234

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->c:Landroid/widget/TextView;

    const v0, 0x7f0c04f9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->c:Landroid/widget/TextView;

    const v1, 0x7f0803d5

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->d:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->d:Landroid/widget/TextView;

    const v1, 0x7f0800a3

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->a:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->d:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->a:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->e:Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/fp;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/fp;-><init>(Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method

.method public a(Landroid/content/Intent;)V
    .locals 1

    const/4 v0, -0x1

    invoke-virtual {p0, v0, p1}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->back()V

    return-void
.end method

.method public b()V
    .locals 3

    const/16 v2, 0x8

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->f:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    invoke-static {}, Lcom/waiqin365/base/db/cmfilteritem/b;->a()Lcom/waiqin365/base/db/cmfilteritem/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/b;->c()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->h:Lcom/waiqin365/lightapp/kehu/fr;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/fr;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->e:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->l:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public onBackPressed()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->a(Landroid/content/Intent;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    const/4 v2, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030080

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->c()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "windowMode"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->j:Z

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->j:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    const/high16 v1, 0x420c0000    # 35.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1, v2, v2, v2}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    :cond_0
    return-void
.end method
